package com.gxa.modules.sys.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@ApiModel("卡劵添加模型")
@AllArgsConstructor
@NoArgsConstructor
public class CouponAddDto {

    @ApiModelProperty("卡劵名称")
    private String couponName;

    @ApiModelProperty("卡劵价格")
    private double price;

    @ApiModelProperty("区域id")
    private Integer areaId;

    @ApiModelProperty("可用日期 如（周一/周二/周三/周四/周五）")
    private String usable;

    @ApiModelProperty("可用小时")
    private Integer useHours;

    @ApiModelProperty("卡劵多少天后失效")
    private Integer validDate;

    @ApiModelProperty("卡劵创建时间")
    private Date creatTime;

    @ApiModelProperty("卡劵过期日期")
    private Date expireTime;

    public CouponAddDto(String couponName, double price, Integer areaId, String usable, Integer validDate) {
        this.couponName = couponName;
        this.price = price;
        this.areaId = areaId;
        this.usable = usable;
        this.validDate = validDate;
    }
}
